// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
  env: "te-6b32b2"
})

const db = cloud.database()

// 云函数入口函数
exports.main = async (event, context) => {
  const wxContext = cloud.getWXContext()
  // let w = {
  //   openid: wxContext.OPENID,
  //   q_id: event.q_id
  // }
  let list = await db.collection('qikan').where({isShow: true}).orderBy('createTime', 'asc').get().then((res)=> {
    return res.data
  })
  

}